﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ManagedServices.UI.Web.Models.SubServiceMetadataModel[]>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>View Added SubServices</h2>

    <table>
			<thead>
			<tr>
				<td>
					<div class="editor-label">SubService Name</div>
				</td>
                <td>
					<div class="editor-label">SubService Description</div>
				</td>
                <td>
					<div class="editor-label">SubService UniqueURN</div>
				</td>
			</tr>
			</thead>
			<tbody>
			<% foreach (var item in this.Model)
			   {%>
			<tr>
				<td>
					<div class="editor-label"> <%= Html.ActionLink(item.SubServiceName, "EditSubService/" + item.SubServiceID)%></div>
				</td>
				
				<td>
					<div class="editor-label"><%=item.SubServiceDescription%> </div>
				</td>          
                
				<td>
					<div class="editor-label"><%=item.UniqueURN %></div>
				</td>          
			</tr>
			</tbody>
			<% }%> 
		</table>
</asp:Content>
